< previous page page_125 next page >

Page 125
Table 4.6 Font Pitch Values
Z0145-01.gif

A font's family indicates generally what sort of appearance the font should have. Table 4.7 lists the values you can give for the font's family.
You can also set the second bit in the PitchAndFamily parameter to indicate that the font mapper should select a TrueType font. Do this by adding 4 to the value using the Or operator. For example, to specify a TrueType font with variable stroke widths, no serifs, and variable pitch, you could set PitchAndFamily to VARIABLE_PITCH Or FF_SWISS Or 4.
Face
Face specifies the typeface name of the font, such as Times New Roman. This is generally what you think of when you think of a font.
Although the CreateFont function can create fonts for use in forms, picture boxes, and printers, the fonts available on your monitor may not be the same as those available on your printer. You cannot always use the same font face names to display text on the monitor and the printer.
Standard Fonts
Table 4.8 lists 13 standard TrueType fonts included in the Windows family of operating systems. You cannot be certain that these fonts will be present on all computers, but chances are good that any computer running Windows will have them. If you use these fonts in your programs, you increase the odds that your program will run correctly on other computers.
Table 4.7 Font Family Values
Z0145-02.gif

 
< previous page page_125 next page >